diff options
| author | real-zephex <[email protected]> | 2024-04-07 19:30:25 +0530 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-04-07 19:30:25 +0530 |
| commit | 1cca92c67651972e6671bfbd7fee325cccd64690 (patch) | |
| tree | 2c569fcd87048af5d3b2fd23a89b28c50565a109 /src/app/manga/[title] | |
| parent | Merge pull request #3 from real-zephex/kdrama-section-rewrite (diff) | |
| parent | idek (diff) | |
| download | dramalama-1cca92c67651972e6671bfbd7fee325cccd64690.tar.xz dramalama-1cca92c67651972e6671bfbd7fee325cccd64690.zip | |
Merge pull request #4 from real-zephex/cloudflare-fix
Cloudflare fix
Diffstat (limited to 'src/app/manga/[title]')
| -rw-r--r-- | src/app/manga/[title]/[id]/[read]/page.jsx | 4 | ||||
| -rw-r--r-- | src/app/manga/[title]/[id]/page.jsx | 2 | ||||
| -rw-r--r-- | src/app/manga/[title]/page.jsx | 2 |
3 files changed, 7 insertions, 1 deletions
diff --git a/src/app/manga/[title]/[id]/[read]/page.jsx b/src/app/manga/[title]/[id]/[read]/page.jsx index eaaa94c..fa338ac 100644 --- a/src/app/manga/[title]/[id]/[read]/page.jsx +++ b/src/app/manga/[title]/[id]/[read]/page.jsx @@ -3,6 +3,8 @@ import Image from "next/image"; import DownloadManga from "./download"; import CurrentReading from "./currentReading"; +export const runtime = "edge"; + export default async function Read({ params }) { const chapterId = params.read; const data = await getPages(chapterId); @@ -32,7 +34,7 @@ export default async function Read({ params }) { images.map((item, index) => ( <div className={styles.Image} key={index}> <Image - src={`https://image-proxy-4xuu.onrender.com/image-proxy?url=${item}`} + src={`https://sup-proxy.zephex0-f6c.workers.dev/api-content?url=${item}`} key={index} alt="Pages" width={800} diff --git a/src/app/manga/[title]/[id]/page.jsx b/src/app/manga/[title]/[id]/page.jsx index 1e4a26f..2d50252 100644 --- a/src/app/manga/[title]/[id]/page.jsx +++ b/src/app/manga/[title]/[id]/page.jsx @@ -5,6 +5,8 @@ import { redirect } from "next/navigation"; import { FaStar } from "react-icons/fa"; import CurrentReading from "./[read]/currentReading"; +export const runtime = 'edge'; + export default async function MangaInfo({ params }) { const id = params.id; const data = await getMangaInfo(id); diff --git a/src/app/manga/[title]/page.jsx b/src/app/manga/[title]/page.jsx index 7788a59..e586d09 100644 --- a/src/app/manga/[title]/page.jsx +++ b/src/app/manga/[title]/page.jsx @@ -2,6 +2,8 @@ import styles from "./title.module.css"; import Image from "next/image"; import Link from "next/link"; +export const runtime = 'edge'; + export default async function MangaInfo({ params }) { const title = params.title; const data = await GetSearchedAnime(title); |